package com.example.homework;

import android.content.Intent;
import android.os.Bundle;
import android.widget.Button;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

import com.example.homework.h2021_04_16.MainActivity;
import com.example.homework.h2021_04_28.HomeworkActivity;

public class NavigationActivity extends AppCompatActivity {

    private Button btnNotification;
    private Button btnSynthesis1;
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_navigation);
        btnNotification = findViewById(R.id.btn_notification);
        btnSynthesis1 = findViewById(R.id.btn_synthesis1);
        btnNotification.setOnClickListener(v->{
            startActivity(new Intent(this, MainActivity.class));
        });

        btnSynthesis1.setOnClickListener(v->{
            startActivity(new Intent(this, HomeworkActivity.class));
        });
    }
}
